import Vue from 'vue'
import VueRouter from 'vue-router'

import Content from '../components/Content'
import Main from '../components/Main'
//安装路由
Vue.use(VueRouter)

//配置导出路由
export default new VueRouter({
  routes: [
    {
      //路由的路径,相当于ssm中的RequestMapping（路径）
      path: '/content',
      //名字
      name: 'content',
      //跳转的组件
      component:Content
    },
    {
      //路由的路径
      path: '/main',
      //名字
      name: 'main',
      //跳转的组件
      component:Main
    }
  ]
});
